a = [5,6,7,3,2,4,1,9,0,8]
b = []
for i in range(0,len(a)-1):
    index_min = i
    for j in range(i+1,len(a)):
        if a[index_min] > a[j]:
            index_min = j
    a[i],a[index_min] = a[index_min],a[i]



print(a)
